package com.aac.rabbitapi.config;

import com.aac.rabbitapi.constant.Queues;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QueueCreation {

    @Bean
    public Queue reqQueue1() {
        return new Queue(Queues.REQUEST_QUEUE + 1);
    }

    @Bean
    public Queue reqQueue2() {
        return new Queue(Queues.REQUEST_QUEUE + 2);
    }

    @Bean
    public Queue reqQueue3() {
        return new Queue(Queues.REQUEST_QUEUE + 3);
    }

    @Bean
    public Queue reqQueue4() {
        return new Queue(Queues.REQUEST_QUEUE + 4);
    }

    @Bean
    public Queue reqQueue5() {
        return new Queue(Queues.REQUEST_QUEUE + 5);
    }

}
